CC = gcc

SRCS = $(shell ls *.c)
OBJS = $(SRCS:.c=.o)

all: gsm_sms

gsm_sms: $(OBJS)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lmysqlclient

.c.o:
	$(CC) -c $(CFLAGS) -o $@ $<

clean:
	$(RM) $(OBJS) gsm_sms
